<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
		<!-- 点击+ -号控制数字 +- -->
		<div id="app">
			  <button @click="add()">+</button>
			  <br>
			 {{count}}
			 <br>
			 <button v-on:click="count--">-</button>
		</div>
	</body>
	
	<script>
		
		
		
		var vue = new Vue({
			el:"#app",
			data:{
				count:1998
			},
			methods:{
				add:function(){
					this.count++
				}
			}
		});
		
	
	</script>
</html>
